//package com.talent.web.controller;
//
//import com.talent.web.model.TalentResult;
//import com.talent.web.pay.WxPayService;
//import com.wechat.pay.java.service.payments.app.model.PrepayResponse;
//import lombok.RequiredArgsConstructor;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.servlet.http.HttpServletRequest;
//
///**
// * @ClassName：WxPayController
// * @Author: hszhou
// * @Date: 2025/3/24 14:18
// * @Description: 微信支付
// */
//@RestController
//@RequestMapping("wx")
//@RequiredArgsConstructor
//@Slf4j
//public class WxPayController {
//
//    private final WxPayService wxPayService;
//
//    @PostMapping("pay/{orderId}")
//    public TalentResult<PrepayResponse> pay(@PathVariable("orderId") Long orderId){
//        PrepayResponse prepay = wxPayService.prepay(orderId);
//        return TalentResult.success(prepay);
//    }
//    /**
//     * 异步回调通知接口
//     * @param request 请求
//     */
//    @PostMapping("callback")
//    public ResponseEntity.BodyBuilder payNotify(HttpServletRequest request){
//        log.info("收到微信回调");
//        return wxPayService.callback(request);
//    }
//
//
//}
